<template>
    <div class="box">
        <img src="http://www.ecdo.net/public/images/ca/2e/7e/e057f72e1da2ee7effc06029be76e35f241e944d.png?1500263971#w" alt="" class="header-img">
        <!--<iframe src="" frameborder="0">1234124142</iframe>-->
        <div class="content">
            <div class="detail-con" v-html="content"></div>
        </div>
    </div>
</template>
<script>
    export default {
        name: 'HelloWorld',
        data () {
            return {
                id: this.$route.query.id,
                content:''
            }
        },
        methods:{
            getDetail(){
                var that=this;
                that.$http({
                    method: 'GET',
                    data: that.id,
                    url: "/article/"+that.id
                }).then(function(res){
                    console.log(res);
                    that.content=res.data.content;
                },function(error){
                    console.log(error);
                })
            }
        },
        created(){
            this.getDetail();
        }
    }
</script>
<style scoped>
    .box{
        width: 100%;
        background-color: #eee;
    }
    .content{
        width: 1000px;
        margin: 0 auto;
        margin-top: -110px;
        background-color: #fff;
        overflow: hidden;
        padding: 0 30px;
        position: relative;
        z-index: 100;
    }
    .detail-con{
        width: 100%;
        margin: 0 auto;
    }
    .header-img{
        width: 100%;
    }
</style>
